import { defineStore } from 'pinia'

export const useCommonState = defineStore('common', {
    state: () => {
        return { 
            // 记录选择的导航项
            selectedNav: "chat"
        }
    },
    actions: {
        // 变更导航选择
        updateNav(selectNav) {
            this.selectedNav = selectNav;
        },
    },
})